﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class CTDatHangNCCDTO
    {
        #region "Khai báo các biến"
        private string _maMH;        
        private string _maDHNCC;        
        private int _soLuong;        
        private string _dVT;        
        private double _donGia;        
        private float _chietKhau;        
        private double _thanhTien;        
        private bool _daGiao;        
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaMH
        {
            get { return _maMH; }
            set { _maMH = value; }
        }
        [DataMember]
        public string MaDHNCC
        {
            get { return _maDHNCC; }
            set { _maDHNCC = value; }
        }
        [DataMember]
        public int SoLuong
        {
            get { return _soLuong; }
            set { _soLuong = value; }
        }
        [DataMember]
        public string DVT
        {
            get { return _dVT; }
            set { _dVT = value; }
        }
        [DataMember]
        public double DonGia
        {
            get { return _donGia; }
            set { _donGia = value; }
        }
        [DataMember]
        public float ChietKhau
        {
            get { return _chietKhau; }
            set { _chietKhau = value; }
        }
        [DataMember]
        public double ThanhTien
        {
            get { return _thanhTien; }
            set { _thanhTien = value; }
        }
        [DataMember]
        public bool DaGiao
        {
            get { return _daGiao; }
            set { _daGiao = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public CTDatHangNCCDTO() { }
        public CTDatHangNCCDTO( string maMH, string maDHNCC, int soLuong, string dVT, double donGia, float chietKhau, double thanhTien, bool daGiao ) 
        {
            this.MaMH = maMH;
            this.MaDHNCC = maDHNCC;
            this.SoLuong = soLuong;
            this.DVT = dVT;
            this.DonGia = donGia;
            this.ChietKhau = chietKhau;
            this.ThanhTien = thanhTien;
            this.DaGiao = daGiao;
        }
        public CTDatHangNCCDTO(CTDatHangNCCDTO CTDatHangNCC) 
        {
            this.MaMH = CTDatHangNCC.MaMH;
            this.MaDHNCC = CTDatHangNCC.MaDHNCC;
            this.SoLuong = CTDatHangNCC.SoLuong;
            this.DVT = CTDatHangNCC.DVT;
            this.DonGia = CTDatHangNCC.DonGia;
            this.ChietKhau = CTDatHangNCC.ChietKhau;
            this.ThanhTien = CTDatHangNCC.ThanhTien;
            this.DaGiao = CTDatHangNCC.DaGiao;
        }
        #endregion
    }
}